package com.dayuanit.dy15.lesson27.demo4;

import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;

public class Test {
    public static void main(String[] args) {
        ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);
        for (ThreadInfo info : threadInfos) {
            System.out.println(info.getThreadName());
        }

//        Monitor Ctrl-Break
//        Attach Listener
//        Signal Dispatcher
//        Finalizer -> 跟垃圾回收器（GC）有关，回收对象
//        Reference Handler
//        main ->执行main方法的
    }
}
